package com.xbxkj.fegin.Hystrix;


import com.xbxkj.fegin.cilent.MenuFegin;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author 张子艺
 * @packge com.fegin.Hystrix
 * @data 2019-01-16 10:13
 * @project currencycloud
 */
@Component
public class MenuFeginHystrix implements FallbackFactory<MenuFegin> {

    @Override
    public MenuFegin create(Throwable throwable) {
        return new MenuFegin() {
            @Override
            public String test() {
                return "断了..";
            }

          };
    }
}
